package com.dev.toolkit.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ZhuYouBin
 * @version 1.0.0
 * @date 2024/06/05 16:56
 * @description 数据库连接配置信息
 */
@Data
@TableName(value = "tk_database_config")
public class DatabaseConfigEntity2 implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
    * 主键ID
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 配置名称
    */
    @TableField(value = "name")
    private String name;

    /**
    * 数据库类型，默认mysql
    */
    @TableField(value = "db_type")
    private String dbType;

    /**
    * 驱动类名称，默认com.mysql.cj.jdbc.Driver
    */
    @TableField(value = "driver_class_name")
    private String driverClassName;

    /**
    * 链接地址
    */
    @TableField(value = "url")
    private String url;

    /**
    * 用户名，默认root
    */
    @TableField(value = "username")
    private String username;

    /**
    * 密码，默认root
    */
    @TableField(value = "password")
    private String password;

    /**
    * 创建时间
    */
    @TableField(value = "create_time")
    private Date createTime;
}